package dsk.demo.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import dsk.demo.product.dao.HotSellDao;
import dsk.demo.product.entity.HotSellEntity;
import dsk.demo.product.entity.ProductEntity;
import dsk.demo.product.service.HotSellService;
import dsk.demo.product.service.ProductService;
import dsk.demo.product.vo.HotSellVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class HotSellServiceImpl extends ServiceImpl<HotSellDao, HotSellEntity> implements HotSellService {

    @Autowired
    ProductService productService;

    @Override
    public List<HotSellVo> getHotSellProduct() {
        //查询所有列表
        List<HotSellVo> hotSellVos = this.getBaseMapper().selectHotSellProduct();
        return hotSellVos;
    }
}
